package com.sxjh.entity;

import com.sxjh.common.Constant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import java.io.Serializable;

@Data
public class PageEntity implements Serializable {

    @ApiModelProperty("每页显示条数")
    @Min(value = 1, message = "每页显示条数必须大于0")
    private long size = Constant.size;

    @ApiModelProperty("当前页")
    @Min(value = 1, message = "当前页必须大于0")
    protected long current = Constant.current;

}